<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Example 35 - Mixed Overlay Delivery</title>
<script type="text/javascript" src="../dist/flash-firebug-fix.js"></script>
<link rel="stylesheet" type="text/css" href="css/global.css" />
</head>
<body>
<h2>Example 35 - Mixed Overlay Delivery</h2>
<p class="example">
This example illustrates how to deliver a mixture of overlay types. 3 random overlays will be
selected and delivered - each running for 5 seconds. Leaving out width and height dimensions
on an Ad Slot definition defaults it to -1 and -1 which means that any non-linear sizing
will be matched.
</p>
<div id="container">
  <div id="player_row">
     <div id="player_left">
    <embed
      id="ply"
      data="../dist/4.5.swf"
      src="../dist/4.5.swf"
      width="450"
      height="300"
      allowscriptaccess="always"
      allowfullscreen="true"
      flashvars="height=300&width=450&plugins=../dist/OpenAdStreamer.swf&config=config/all35.xml"
    />
   </div>
   <div id="player_right">
    <div id="companion">
      A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
    </div>
   </div>
  </div>
</div>
<br/>
<p>
The configuration for this example is:
</p>
<div class="codebox">
<pre>
<code>
&lt;embed
  id="ply"
  data="../dist/4.5.swf"
  src="../dist/4.5.swf"
  width="450"
  height="300"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="height=300&width=450&plugins=../dist/OpenAdStreamer.swf&config=config/all35.xml"
/&gt;
</code>
</pre>
</div>
<p>
"all36.xml" is defined as:
</p>
<div class="codebox">
<pre>
<code class="xml">
&lt;config&gt;
    &lt;openadstreamer.title&gt;
       ALL Example 35
    &lt;/openadstreamer.title&gt;
    &lt;openadstreamer.json&gt;
    {
            "shows": {
                "streams": [
                   {
                       "file":"http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
                       "duration":"00:00:30"
                   }
                ]
            },

            "ads": {
                "servers": [
                    {
                       "type": "OpenX",
                       "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                    }
                ],
                "displayCompanions": true,
                "companions": [
                    { "id":"companion", "width":"150", "height":"360" }
                ],
                "schedule": [
                    {
                        "zone": "44",
                        "startTime": "00:00:05",
                        "duration": "5"
                    },
                    {
                        "zone": "44",
                        "startTime": "00:00:12",
                        "duration": "5",
                    },
                    {
                        "zone": "44",
                        "startTime": "00:00:19",
                        "duration": "5"
                    }
                ],
            },

            "debug": {
                "levels": "fatal",
                "debugger": "firebug"
            }
        }
    &lt;/openadstreamer.json&gt;
&lt;/config&gt;
</code>
</pre>
</div>
<script type="text/javascript" src="js/tracking.js">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10158120-3");
if(TRACKING_TURNED_ON) {
  pageTracker._trackPageview();
}
} catch(err) {}
</script>
</body>
</html>